<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\fenhuiartic\Fenhuiartic */

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Fenhuiartics'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/fenhui-menu') ?>
<?php $this->endBlock(); ?>
<div class="fenhuiartic-view">



    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'title',
            [
                'attribute'=>'fg_id',
                'value'=> $model->fenhuigrade->name
            ],
            [
                'attribute'=>'fc_id',
                'value'=> $model->fenhuicat->name
            ],
            'subhead',
            'intro:ntext',
            // 'img',
            'author',
            'comefrom',
            'link',
            // 'content:ntext',
            'seocontent',
            'seokeyword',
            'isrecom',
            [
                'attribute' => 'push_status',
                'value' => $model->getbaidustatus($model->push_status),
            ],
            [
                'attribute' => 'status',
                'value' => $model->getStatus($model->status),
            ],
            [
                'attribute' => 'created_at',
                'format' =>  ['date', 'php:Y-m-d H:i:s'],
            ],
            [
                'attribute' => 'updated_at',
                'format' =>  ['date', 'php:Y-m-d H:i:s'],
            ],
        ],
    ]) ?>

</div>
